<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>To create SDO_DAS_XML object for a given schema file</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sdo-das-xml.addtypes.html">SDO_DAS_XML::addTypes</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sdo-das-xml.createdataobject.html">SDO_DAS_XML::createDataObject</a></div>
 <div class="up"><a href="ref.sdo-das-xml.html">SDO DAS XML 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sdo-das-xml.create" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SDO_DAS_XML::create</h1>
  <p class="verinfo">(^)</p><p class="refpurpose"><span class="refname">SDO_DAS_XML::create</span> &mdash; <span class="dc-title">
   To create SDO_DAS_XML object for a given schema file
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-sdo-das-xml.create-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="ref.sdo-das-xml.html" class="type SDO_DAS_XML">SDO_DAS_XML</a></span> <span class="methodname"><strong>SDO_DAS_XML::create</strong></span>
    ([ <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$xsd_file</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
  ]] )</div>


  <p class="para rdfs-comment">
   This is the only static method of SDO_DAS_XML class. 
   Used to instantiate SDO_DAS_XML object.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-sdo-das-xml.create-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">xsd_file</code></em>
     </dt>

     <dd>

      <p class="para">
       Path to XSD Schema file. This is optional. If omitted a DAS will be created
       that only has the SDO base types defined. Schema files can then be loaded
       with the <span class="function"><strong>addTypes()</strong></span> method.
       Can be string or array of values.
      </p>
     </dd>

    
    
     <dt>

      <em><code class="parameter">key</code></em>
     </dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-sdo-das-xml.create-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns SDO_DAS_XML object on success otherwise throws an exception as described below.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-sdo-das-xml.create-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">SDO_TypeNotFoundException</code></em>
     </dt>

     <dd>

      <p class="para">
       Thrown if a type is not defined in the underlying model.
      </p>
     </dd>

    
    
     <dt>

      <em><code class="parameter">SDO_DAS_XML_ParserException</code></em>
     </dt>

     <dd>

      <p class="para">
       Thrown for any problems while parsing the given XSD File.
      </p>
     </dd>

    
    
     <dt>

      <em><code class="parameter">SDO_DAS_XML_FileException</code></em>
     </dt>

     <dd>

      <p class="para">
       Thrown if the specified file cannot be found. 
      </p>
     </dd>

    
   </dl>

  </p>
 </div>



 


 


 


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sdo-das-xml.addtypes.html">SDO_DAS_XML::addTypes</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sdo-das-xml.createdataobject.html">SDO_DAS_XML::createDataObject</a></div>
 <div class="up"><a href="ref.sdo-das-xml.html">SDO DAS XML 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
